//index.js
const app = getApp()
//连接云数据集
const db = wx.cloud.database()
const eventshow = db.collection('eventshow')



Page({
  data: {
   
  },
  onLoad:function(){

  }
,
onShow:function(){
  eventshow.limit(5).where({
    isHot: "true"
    })
  .get({
    success:res=>{
      console.log(res);
      this.setData({
        eventList:res.data
      })
    }

    

    
  })
}


})